package com.itheima.myenum.test1;

public enum Eunm {
    SPRING("春") {
        @Override
        public void show() {
            System.out.println("春天");
        }
    }, SUMMER("夏") {
        @Override
        public void show() {
            System.out.println("夏天");
        }
    }, AUTUMN("秋") {
        @Override
        public void show() {
            System.out.println("秋天");
        }
    }, WINTER("冬") {
        @Override
        public void show() {
            System.out.println("冬天");
        }
    };
    public String name;
    //定义一个构造,私有
   // private Eunm(){}
    //有参
    private Eunm(String name){
        this.name=name;
    }
public abstract void show();
}
